import Vue from 'vue'
import Router from 'vue-router'
/* 登录注册  */
import Login from '@/loginRegister/login'
import Register from '@/loginRegister/register'
import setPassword from '@/loginRegister/setPassword' /* 设置密码  */
import forgetPassword from '@/loginRegister/forgetPassword' /* 找回密码  */
import getBackPassword from '@/loginRegister/getBackPassword' /* 找回密码  */
import IdentityChoice from '@/loginRegister/identityChoice' /* 身份选择  */

import enterpriseIndex from '@/enterprise/index' /* 企业首页  */
import freelancerIndex from '@/freelancer/index' /* 顾问首页  */
import industryList from '@/freelancer/industryList' /* 顾问制造行业  */


Vue.use(Router);

const routers = [{
    path: '/',
    name: 'Login',
    component: Login
}, {
    path: '/login',
    name: 'Login',
    component: Login
}, {
    path: '/identityChoice',
    name: 'IdentityChoice',
    component: IdentityChoice
}, {
    path: '/register',
    name: 'Register',
    component: Register
}, {
    path: '/setPassword',
    name: 'setPassword',
    component: setPassword
}, {
    path: '/forgetPassword',
    name: 'forgetPassword',
    component: forgetPassword
}, {
    path: '/getBackPassword',
    name: 'getBackPassword',
    component: getBackPassword
}, {
    path: '/freelancer/index',
    name: 'freelancerIndex',
    component: freelancerIndex
}, {
    path: '/freelancer/industryList',
    name: 'industryList',
    component: industryList
}, {
    path: '/enterprise/index',
    name: 'enterpriseIndex',
    component: enterpriseIndex
}];

const router = new Router({
    mode: 'history',
    routes: routers
});

export default router;